﻿using PetaPoco;
using PmSoft;
using PmSoft.Caching;
using System.ComponentModel;

namespace Modules.CheckInCount.Entitys;

/// <summary>
/// 计数-每天
///</summary>
[TableName("count_perday")]
[Description("统计每天的数据")]
[PrimaryKey("id", AutoIncrement = true)]
[CacheSetting(false)]
[Serializable]
public class CountPerday : IEntity
{
    /// <summary>
    /// 主键
    ///</summary>
    [Column("id")]
    public int Id { get; set; }

    /// <summary>
    /// 租户类型
    ///</summary>
    [Column("tenant_type")]
    public byte? TenantType { get; set; }

    /// <summary>
    /// 统计类型
    ///</summary>
    [Column("count_type")]
    public byte? CountType { get; set; }

    /// <summary>
    /// 统计对象
    ///</summary>
    [Column("object_id")]
    public int? ObjectId { get; set; }

    /// <summary>
    /// 统计数量
    ///</summary>
    [Column("statistics_count")]
    public int? StatisticsCount { get; set; }

    /// <summary>
    /// 年
    ///</summary>
    [Column("year")]
    public int? Year { get; set; }

    /// <summary>
    /// 月
    ///</summary>
    [Column("month")]
    public int? Month { get; set; }

    /// <summary>
    /// 日
    ///</summary>
    [Column("day")]
    public int? Day { get; set; }

    #region IEntity 成员

    [Ignore]
    object IEntity.EntityId { get { return this.Id; } }

    #endregion IEntity 成员
}